package com.esm.pdawms.model;

import zuo.biao.library.base.BaseModel;

/*

{"code":1,"msg":"ok","time":"1668740400",
"data":{"bomlist":[{"hpname":"五星把手M10*80","hpcode":"10101","ph":"12122","kwbh":"A18-1-2-10(1) ","num":1},
{"hpname":"电感ET20-12mH-V1.0 品牌:燊阳\/赛品","hpcode":"10301A025","ph":"20220210","kwbh":"A1-3-3-7(2) A18-1-2-5(1) ","num":3},
{"hpname":"色环电阻0.25W 2.2KΩ±1% 品牌:厚生","hpcode":"110101A007","ph":"12122","kwbh":"K12-6-1(1) ","num":1}],
"hpname":"检针机","hpcode":"HP_0034543243434","hp_id":39,"num":1}}
*/
//领料单bom货品编码
public class Linliaohp extends BaseModel {

    private static final long serialVersionUID = 1L;

    float num = 0; //需求
    String hpname = "";//名称
    String hpcode = "";//
    String kwbh = "";//库位
    String kwlist = "";//库位 列表
    float fnum = 0; // 已领数量

    String hkcode = ""; // 货品小标
    String ph = "";

    public Linliaohp() {
        //default
    }

    public Linliaohp(String kwbh, String hkcode, String hpcode, String ph) {
        //default
        this.hkcode = hkcode;
        this.kwbh = kwbh;
        this.hpcode = hpcode;
        this.ph = ph;
    }

    public String getPh() {
        return ph;
    }

    public void setPh(String ph) {
        this.ph = ph;
    }

    public String getHkcode() {
        return hkcode;
    }

    public void setHkcode(String hkcode) {
        this.hkcode = hkcode;
    }

    public String getKwlist() {
        return kwlist;
    }

    public void setKwlist(String kwlist) {
        this.kwlist = kwlist;
    }

    public float getNum() {
        return num;
    }

    public void setNum(float num) {
        this.num = num;
    }

    public float getFnum() {
        return fnum;
    }

    public void setFnum(float fnum) {
        this.fnum = fnum;
    }

    public String getHpname() {
        return hpname;
    }

    public void setHpname(String hpname) {
        this.hpname = hpname;
    }

    public String getHpcode() {
        return hpcode;
    }

    public void setHpcode(String hpcode) {
        this.hpcode = hpcode;
    }

    public String getKwbh() {
        return kwbh;
    }

    public void setKwbh(String kwbh) {
        this.kwbh = kwbh;
    }


    @Override
    protected boolean isCorrect() {//根据自己的需求决定，也可以直接 return true
        return id > 0;// && StringUtil.isNotEmpty(phone, true);
    }

}
